import * as loginActions from '../redux/actions/login'
import store from '../redux/store'

// 初始化登录信息
if(localStorage.getItem('user')) {
  store.dispatch(loginActions.setLogin(JSON.parse(localStorage.getItem('user'))))
}